#pragma once
#include "Server.h"
#include "Cache.h"
#include "UserObj.h"
#include "NodeServer.h"
#include "DBProtocol.h"
#include "LobbyPlayer.h"
#include "MatchPlayer.h"
#include "GameCache.h"
#include "ObjPtrList.h"

class CDBServer : public CNodeServer
{
public:
	CDBServer(void);
	~CDBServer(void);

	virtual BOOL OnInitialUpdate();
	virtual CServerPlayer* CreateServerPlayer(int nOrigin, int nServerId);

	CGameCache* GetCache(DWORD dwGameId);
public:
};

extern CDBServer *g_pDBServer;
extern CCache<CUserObj, Cache_Group_Count> g_cacheUser;
extern CObjPtrList<CGameCache> g_listGameCache;
extern CLock m_lockListGameCache;

